package net.service.impl;

import net.dao.RectangleReferenceDao;
import net.model.RectangleReference;
import net.service.RectangleReferenceManager;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class RectangleReferenceManagerImpl implements
		RectangleReferenceManager {

	@Autowired
	private RectangleReferenceDao rectangleReferenceDao;

	@Transactional
	public RectangleReference getRectangleReference() {
		return rectangleReferenceDao.getRectangleReference();
	}

	@Transactional
	public RectangleReference getRectangleReference(String nombreSistema) {
		return rectangleReferenceDao.getRectangleReference(nombreSistema);
	}

	@Override
	public void setRectangleReference(RectangleReference rectangleReference) {
		rectangleReferenceDao.setRectangleReference(rectangleReference);
		
	}
}
